{include file='public/header'}
{block name='css'}
  <style type="text/css">
        .box{
      border-top: none;
    }
    .fs{
      font-size: 16px;
    }
    .btn_all{ 
      /*float: left;*/
      margin-top: 22px;
      margin-right: 30px;
    }
    .page_right{
      text-align: center;
    }
    .sh{
        color: #ad4515;
    }
    .tg{
      color: #00a65a;
    }
    .btg{
      color: #f39c12;
    } 
    .lh{
      color: #000;
    }
    .total{
      float: right;
    }
    .details_span{
      padding:3px;background:#00a65a;color:#fff;margin-right:5px;margin-top:3px;border-radius:5px;font-size:12px;    display: inline-block;
    }
    /*行高自动*/
    .laytable-cell-1-files {
      width: 286px;
      height: auto;
    }
    .layui-table img {
     margin-left: 5px;
    }
    .clw{
      background-color: #fff;
    }
 
  </style>
{/block}

<body class="hold-transition skin-green-light sidebar-mini">
<div class="wrapper">

  <header class="main-header">
    <!-- Logo -->
    <a href="{:url('admin/index/index')}" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini">后台</span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg">电子处方后台系统</span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">

        <!-- Sidebar toggle button-->
        <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
          <span class="sr-only">Toggle navigation</span>
        </a>

      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
          <!--提醒-->
          <!-- <li >
            <a href="{:url('admin/book/index')}" class="dropdown-toggle" >
              <i class="fa fa-bell-o"></i>
              <span class="label label-warning" id="fz">0</span>
            </a>
          </li> -->
          <!--返回主页-->
        <!-- <li class="dropdown ">
            <a href="{:url('index/index/index')}">
              <i class="fa fa-home"></i>
            </a>
        </li> -->

          <!-- User Account: style can be found in dropdown.less -->
          <li class="dropdown user user-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <img src="__AdminLTE__/dist/img/avatar5.png" class="user-image" alt="User Image">
              <span class="hidden-xs">{php}echo session('username'){/php}</span>
            </a>
            <ul class="dropdown-menu">
              <!-- User image -->
              <li class="user-header">

                <img src="__AdminLTE__/dist/img/avatar5.png" class="img-circle" alt="User Image">

                <p>
                  用户名
                  <small>{php}echo session('username');{/php}</small>
                </p>
              </li>
      
              <li class="user-footer">
                <div class="pull-right">
                  <a href="{:url('admin/index/lockscreen')}" class="btn btn-default btn-flat">锁屏</a>
                  <a href="{:url('admin/login/logout')}" class="btn btn-default btn-flat">注销</a>
                </div>
              </li>
            </ul>
          </li>
   
        </ul>
      </div>
    </nav>
  </header>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      <!-- Sidebar user panel -->
      <div class="user-panel">
        <div class="pull-left image">
          <img src="__AdminLTE__/dist/img/avatar5.png" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info">
          <p>{php}echo session('username');{/php}</p>
          <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
        </div>
      </div>



      <!-- sidebar menu: : style can be found in sidebar.less -->
      <ul class="sidebar-menu" data-widget="tree">

        <!-- <li class="header">主菜单</li> -->
           {foreach name="menu" item="vo"}
                    {if condition="isset($vo['children'])"}
                           <li class="treeview">
                                    <a  href="#">
                                      <i class="{$vo.icon}"></i> <span>{$vo.title}</span>
                                      <span class="pull-right-container">
                                        <i class="fa fa-angle-left pull-right"></i>
                                      </span>
                                    </a>

                                     <ul class="treeview-menu">
                                        {foreach name="vo['children']" item="v"}

                                              <li style="margin-left: 15px" ><a href="{:url($v.name)}"><i class="fa fa-circle-o"></i>{$v.title}</a></li>

                                        {/foreach}
                                      </ul>
                            </li>
                    {else /}

                      <li class="one_level">
                        <a style="color:#red" href="{:url($vo.name)}">
                          <i class="{$vo.icon}"></i> <span>{$vo.title}</span>
                          <span class="pull-right-container">
                            <i class="fa  "></i>
                          </span>
                        </a>
                        </li>
                {/if}
            {/foreach}
      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>


  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
        {block name='content'}{/block}
  </div>
  <!-- /.content-wrapper -->

  <footer class="main-footer">
    <div class="pull-right hidden-xs">
      <b>Version</b> 2.4.0
    </div>
    <strong>Copyright &copy; 2014-2018 <a  target="_target" href="https://www.gxyouyun.com/">广西优云智慧有限公司</a>.</strong> All rights
    reserved.
  </footer>

  <!-- Add the sidebar's background. This div must be placed
       immediately after the control sidebar -->
  <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->
 <audio id="myaudio" src="__static__/mp3/ts.mp3" controls="controls"  hidden="true" ></audio>
<script type="text/javascript">
    // setInterval(function(){
    //    $.ajax({
    //       type: "get",
    //        url: "{:url('admin/index/mp3')}",
    //        data: {},
    //        success:function(data){
            
    //          if(data > 0){
    //           var myAuto = document.getElementById('myaudio');
    //              myAuto.play(); 
    //           }
    //           document.getElementById("fz").innerText=data;
    //        }
    //    })
    //   },10000)
</script>
</body>
{include file='public/footer'}
{block name="js"}{/block}
{block name="script"}{/block}
</html>

